import type { FilterDocType } from "@/types/common";
import mitt from "mitt";

export type SearchParam ={
    type:string
    key:string
}

type Events = {
    search:SearchParam,
    showTodo:string|null,
    showToRead:string|null
    showRedirect:string|null
    showDone:string|null
    showFavo:string|null
    showMy:string|null
    tabChange:null

    filter:FilterDocType
    filterAll:null
    filterSend:null
    filterReceive:null
    filterReport:null
    filterAskLeave:null
    filterSeal:null
    filterRepresent:null

    showLoading:string
    closeLoading:''

};

const mitter = mitt<Events>();

export default mitter;